export const CONFIG_VALUE = {
  1: '指定标签',
  2: '指定人员',
  3: '无'
}
export const DIALOG_TIMES = {
  0: '每次',
  1: '仅一次'
}
export const DIALOG_HEAD_LIST = [
  { prop: 'dialogTitle', label: '弹窗标题' },
  { prop: 'dialogDesc', label: '简介', width: '400px' },
  { prop: 'receive', label: '接收人员' },
  { prop: 'status', label: '状态' },
  { prop: 'updateBy', label: '发布人员' },
  { prop: 'updateTime', label: '发布时间' }
]
export const DIALOG_FORM = [
  { prop: 'dialogTitle', label: '弹窗标题：', type: 'input', len: 15, rules: { required: true, message: '请输入弹窗标题：', trigger: 'blur' }, isEdit: true },
  { prop: 'dialogDesc', label: '弹窗简介：', type: 'input', len: 50, rules: { required: true, message: '请输入弹窗简介', trigger: 'blur' }, isEdit: true },
  { prop: 'dialogContent', label: '弹窗内容', type: 'textarea', rules: { required: true, message: '请输入弹窗内容：', trigger: 'blur' }, isEdit: true, len: 300 },
  { prop: 'effectiveTime', label: '生效时间', type: 'datetimerange', rules: { required: true, message: '请选择生效时间', trigger: 'change' }, isEdit: true },
  { prop: 'dialogTimes', label: '弹窗次数', type: 'radio', option: DIALOG_TIMES, rules: { required: true, message: '请选择弹窗次数', trigger: 'change' }, isEdit: true },
  { prop: 'receive', label: '接收人员', type: 'select', option: CONFIG_VALUE, rules: { required: true, message: '请选择接收人员', trigger: 'change' }, isEdit: true },
  { prop: '', label: '', type: 'btn', btnName: '保存' }
]

export const DIALOG_DETAIL_FORM = [
  { prop: 'dialogTitle', label: '弹窗标题：', type: 'input', len: 15, rules: { required: true, message: '请输入弹窗标题：', trigger: 'blur' }, isEdit: false },
  { prop: 'dialogDesc', label: '弹窗简介：', type: 'input', len: 50, rules: { required: true, message: '请输入弹窗简介', trigger: 'blur' }, isEdit: false },
  { prop: 'dialogContent', label: '弹窗内容', type: 'textarea', rules: { required: true, message: '请输入弹窗内容：', trigger: 'blur' }, isEdit: false, len: 300 },
  { prop: 'effectiveTime', label: '生效时间', type: 'datetimerange', rules: { required: true, message: '请选择生效时间', trigger: 'change' }, isEdit: false },
  { prop: 'dialogTimes', label: '弹窗次数', type: 'radio', option: DIALOG_TIMES, rules: { required: true, message: '请选择弹窗次数', trigger: 'change' }, isEdit: false },
  { prop: 'receive', label: '接收人员', type: 'select', option: CONFIG_VALUE, rules: { required: true, message: '请选择接收人员', trigger: 'change' }, isEdit: false }
]
